package com.qding.park.manager.pojo;

import java.util.Date;

/**
 * @ClassName TbFeetrade
 * @Description TODO(资金流水)
 * @author Administrator
 * @Date 2016年8月26日 上午11:36:31
 * @version 1.0.0
 */
public class TbFeetrade {
	
	/**
	 * @Field @id : TODO(id)
	 */
	private String id;
	
	/**
	 * @Field @userID : TODO(用户id)
	 */
	private int userID;
	
	/**
	 * @Field @parkID : TODO(车场　id)
	 */
	private int parkID;
	
	/**
	 * @Field @feeType : TODO(业务类型)
	 */
	private int feeType;
	
	/**
	 * @Field @feeCost : TODO(金额)
	 */
	private int feeCost;
	
	/**
	 * @Field @businessID : TODO(业务ID)
	 */
	private String businessID;
	
	/**
	 * @Field @channel : TODO(支付渠道0线下，1线上  )
	 */
	private int channel;
	
	/**
	 * @Field @status : TODO(1 有效，0,无效)
	 */
	private int status;
	
	private Date create_date;
	
	private Date update_date;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public int getParkID() {
		return parkID;
	}

	public void setParkID(int parkID) {
		this.parkID = parkID;
	}

	public int getFeeType() {
		return feeType;
	}

	public void setFeeType(int feeType) {
		this.feeType = feeType;
	}

	public int getFeeCost() {
		return feeCost;
	}

	public void setFeeCost(int feeCost) {
		this.feeCost = feeCost;
	}

	public String getBusinessID() {
		return businessID;
	}

	public void setBusinessID(String businessID) {
		this.businessID = businessID;
	}

	public int getChannel() {
		return channel;
	}

	public void setChannel(int channel) {
		this.channel = channel;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}

	public Date getUpdate_date() {
		return update_date;
	}
	
	public void setUpdate_date(Date update_date) {
		this.update_date = update_date;
	}
	
	
	
	public static enum  FeeTypeEnum{
		CAPITALFLOW_FEETYPE("预定押金", 1),
		CAPITALFLOW_TEMP_PAY("临停支付", 2),
		CAPITALFLOW_MONTH_PAY("月卡支付", 3),
		REFUND_PAY("退款",4);
		

		/** 描述 */
		private String desc;
		/** 枚举值 */
		private int type;

		private FeeTypeEnum(String desc, int status) {
			this.desc = desc;
			this.type = status;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}

		public int getType() {
			return type;
		}

		public void setType(int type) {
			this.type = type;
		}

	}
	
	
	
	
	public static enum  ChannelEnum{
		CAPITALFLOW_LINE("线下", 0),
		CAPITALFLOW_ONLINE("线上", 1);
		

		/** 描述 */
		private String desc;
		/** 枚举值 */
		private int type;
		
		public static String getDesc(int code){
			String desc="其它";
			if(code==CAPITALFLOW_LINE.getType()){
				desc="线下";
			}else if(code==CAPITALFLOW_ONLINE.getType()){
				desc="线上";
			}
			return desc;
		}

		private ChannelEnum(String desc, int status) {
			this.desc = desc;
			this.type = status;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}

		public int getType() {
			return type;
		}

		public void setType(int type) {
			this.type = type;
		}

	}
	
	
	
	
}
